home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Arsenal Files 8
/
The Arsenal Files Collection #8 (Arsenal Computer) (1996).ISO
/
prg_casm
/
snip9611.zip
/
SSTRCPY.C
< prev
next >
Wrap
C/C++ Source or Header
|
1996-11-24
|
490b
|
29 lines
/* +++Date last modified: 24-Nov-1996 */
/*
** strcpy() and strcat() work-alikes which allow overlapping buffers.
*/
#include <string.h>
#include "snip_str.h"
#if defined(__cplusplus) && __cplusplus
extern "C" {
#endif
char *sstrcpy(char *to, char *from)
{
memmove(to, from, 1+strlen(from));
return to;
}
char *sstrcat(char *to, char *from)
{
sstrcpy(to + strlen(to), from);
return to;
}
#if defined(__cplusplus) && __cplusplus
}
#endif